import request from '@/utils/request'

// 查询应收账单列表
export function listReceive(query) {
  return request({
    url: '/finance/receive/list',
    method: 'get',
    params: query
  })
}

// 查询应收账单详细
export function getReceive(voucherPayableNo) {
  return request({
    url: '/finance/receive/' + voucherPayableNo,
    method: 'get'
  })
}

// 新增应收账单
export function addReceive(data) {
  return request({
    url: '/finance/receive',
    method: 'post',
    data: data
  })
}

// 修改应收账单
export function updateReceive(data) {
  return request({
    url: '/finance/receive',
    method: 'put',
    data: data
  })
}

// 删除应收账单
export function delReceive(voucherPayableNo) {
  return request({
    url: '/finance/receive/' + voucherPayableNo,
    method: 'delete'
  })
}
